Run manager in host-network mode#8
Conversation
We do not need pod to pod communication, so setting the pod into hostNetwork mode makes it work even when CNI is not working. That matches the behaviour of the agents.
I have multiple question about it:
Please elaborate |
The kubernetes api server for the cluster do not run inside the shoot cluster, but inside the seed cluster. The API is usable without CNI, and as observed in with our blue nodes where the CNI was failing, it improves the availability, as it still works in that case.
I am missing the question here. What is the attack scenario you have in mind?
That is not correct. The agents are running in hostNetwork mode. Pod networking is the requirement of any kubernetes workload, requiring pod-to-pod communication, such as ingress, services, etc... The benefit is having one less component that might fail involved as demonstrated in our blue nodes, where everything except this agent was working, despite the CNI being broken. |
As far as I see DNS resolving by coredns is still a pod inside the shoot cluster.
lmgtfy:
The agent's are running in hostNetwork because you didn't cared to harden them, it's not clear if all containers need to run in hostNetwork. So the argument is invalid. If you can elaborate the what benefits you see in not relying on CNI and how they outweighs the security issues. |
|
This PR is stale because it has been open for 45 days with no activity. |
|
This PR was closed because it has been inactive for 14 days since being marked as stale. |
We do not need pod to pod communication, so setting the pod into hostNetwork mode makes it work
even when CNI is not working.
That matches the behaviour of the agents.